package tqq.action.iterator;


public class StrIterator implements Iterator{
	private String [] str;
	private int length;
	
	public StrIterator(String [] str){
		this.str=str;
		this.length=str.length;
	}

	@Override
	public Object next() {
		String s = str[length-1];
		length --;
		return s;
	}

	@Override
	public boolean hasNext() {
		if(length<1){
			return false;
		}
		return true;
	}

}
